package com.xiaofan.service.imp;

import com.xiaofan.bean.User;
import com.xiaofan.mapper.UserMapper;
import com.xiaofan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 晓帆
 * @version 1.0
 **/
@Service
public class UserServiceImp implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public User selectUserById(Integer id) {
        User user = userMapper.getUser(id);
        return user;
    }
}
